#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "workthread.h"

namespace Ui {
class Dialog;
}

#define MAXSIZE 10

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

private slots:
    void on_startButton_clicked();

    void on_stopButton_clicked();

    void on_quitButton_clicked();

private:
    Ui::Dialog *ui;
    WorkThread *workThread[MAXSIZE];
    bool needDeleteThread;
};

#endif // DIALOG_H
